<template>
	<view>
		<view class="productbox">
			<view class="product" v-for="(item,index) in 5">
				<image src="../../static/logo.png" mode="" class="sptu"></image>
				<view class="title">
					欧莱雅（LOREAL）复颜玻尿
					酸水光充盈导入膨润精华液
				</view>
				<view class="btnbox">
					<text class="dw">￥</text>
					<text class="price">128</text>
					<text class="delprice">￥160</text>
					<image src="../../static/car.png" mode=""></image>
				</view>
				<view class="ypd">
					已拼<text>860</text>件
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			particulars() {
				this.$emit('particulars')
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	.productbox {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		margin-left: 22rpx;
	}


	.product {
		margin-right: 48rpx;
		background-color: #FFFFFF;
		width: 330rpx;
		margin-bottom: 10rpx;

		.sptu {
			width: 330rpx;
			height: 330rpx;
			border-radius: 12rpx;
		}

		.title {
			width: 330rpx;
			font-family: MicrosoftYaHei;
			font-size: 26rpx;
			color: #333333;
			margin-top: 10rpx;
		}

		.btnbox {
			display: flex;
			align-items: center;
			margin-top: 15rpx;

			.dw {
				font-size: 20rpx;
				font-family: PingFang-SC-Bold;
				color: #f74034;
			}

			.price {
				font-family: PingFang-SC-Bold;
				font-size: 28rpx;
				font-weight: 700;
				letter-spacing: 0rpx;
				color: #f74034;
			}

			.delprice {
				font-family: PingFang-SC-Medium;
				font-size: 20rpx;
				font-weight: normal;
				letter-spacing: 0rpx;
				color: #999999;
				text-decoration: line-through;
				margin-left: 10rpx;
			}

			image {
				width: 40rpx;
				height: 40rpx;
				margin-left: 140rpx;
			}
		}

		.ypd {
			font-family: MicrosoftYaHei;
			font-size: 22rpx;
			color: #666666;
			margin-top: 20rpx;

			text {
				color: #f73f33;
			}
		}
	}

	.product:nth-child(2n) {
		margin-right: 0;
	}
</style>
